package com.yenlien.traceyun.breed.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import com.yenlien.traceyun.breed.entity.Soil;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;

@Deprecated
public interface SoilDao {

    Soil findById(String id);

    @Query(value = "select * from t_breed_soil where type = 1", nativeQuery = true)
    List<Soil> findAllBase();

    @Query(value = "select * from t_breed_soil where type = ?1", nativeQuery = true)
    List<Soil> findSoilByType(String type);

    List<Soil> findByPidAndType(String pid, int type);
}
